package com.Jiang.service.User;
import com.Jiang.pojo.User;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.Vector;

public interface UserService {
    public User Login(String userCode,String userPassword) throws SQLException;

    public boolean ModifyPassword(Integer id,String userPassword) throws SQLException;

    public int getUserCount(String userName, int userRole) throws SQLException;

    public Vector<User> getUserList(String userName, int userRole, int currentPageNo, int pageSize) throws SQLException;

    public boolean addUser(User user) throws SQLException;

    public boolean FindUserCodeIsExist(String userCode) throws SQLException;

    public User getUserById(int Id) throws SQLException;

    public boolean modifyUser(User user,int modifyBy) throws SQLException;

    public boolean deluser(int Id) throws SQLException;
}
